﻿<%@ Page Title="【个人中心】- 兑换记录" Language="C#" MasterPageFile="~/APP_Master/MasterPage_Personal.master"
    AutoEventWireup="true" CodeFile="per_exchangeList.aspx.cs" Inherits="per_exchangeList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--Right-->
    <div class="per_right_con">
        <!--exNav-->
        <ul class="per_ex_nav">
            <li><a href="per_exchange.aspx?p=6">兑换码兑换</a></li>
            <li><a href="per_exchangeCar.aspx?p=6">卡密兑换</a></li>
            <li><a href="per_exchangeList.aspx?p=6" class="cur">兑换记录</a></li>
        </ul>
        <!--exNav-->
        <div class="per_pre_record_t">
            <b>查询时间</b>
            <script type="text/javascript" src="../js/jquery-1.7.min.js"></script>
            <dl class="select03">
                <asp:DropDownList ID="timesl" runat="server" AutoPostBack="true"
                    OnSelectedIndexChanged="timesl_SelectedIndexChanged">
                    <asp:ListItem Value="5">全部</asp:ListItem>
                    <asp:ListItem Value="0">今天</asp:ListItem>
                    <asp:ListItem Value="1">近一周</asp:ListItem>
                    <asp:ListItem Value="2">近一个月</asp:ListItem>
                    <asp:ListItem Value="3">近三个月</asp:ListItem>
                    <asp:ListItem Value="4">近六个月</asp:ListItem>
                </asp:DropDownList>
            </dl>
            <div class="per_ex_title_font">
            </div>
        </div>
        <ul class="per_ex_title_ul">
            <li style="width: 15%">红包名称</li>
            <li style="width: 15%">总金额</li>
            <li style="width: 15%">兑换日期</li>
            <li style="width: 15%">过期日期</li>
            <li style="width: 20%">类型</li>
           <%-- <li style="width: 20%">明细</li>--%>
        </ul>
        <%if (userOrder != null && userOrder.Rows.Count > 0)
            {
                for (int i = 0; i < userOrder.Rows.Count; i++)
                { %>
        <ul class="per_integral_con_ul">
            <li style="width: 15%"><%=userOrder.Rows[i]["Title"]%></li>
            <li style="width: 15%"><%=userOrder.Rows[i]["Money"]%></li>
            <li style="width: 15%"><%=Convert.ToDateTime(userOrder.Rows[i]["ExchangeTime"]).ToString("yyyy-MM-dd")%></li>
            <li style="width: 15%"><%=Convert.ToDateTime(userOrder.Rows[i]["EndTime"]).ToString("yyyy-MM-dd")%></li>
            <li style="width: 20%"><%if (Convert.ToInt16(userOrder.Rows[i]["Type"]) == 1)
                                       {%>兑换码<%}
                                                 else
                                                 { %>彩金卡兑换<%} %></li>
           <%-- <li style="width: 20%"><a href="">查看明细</a></li>--%>
        </ul>
        <%}
            }
            else
            { %>
        <ul class="per_integral_con_ul">

            <div style="text-align: center">暂无记录</div>
        </ul>
        <%}%>
        <div class="sabrosus">
            <webdiyer:AspNetPager SubmitButtonClass="buttons" ID="AspNetPager1"
                runat="server" AlwaysShow="True" FirstPageText="首页"
                NextPageText="下一页" PrevPageText="前一页" LastPageText="尾页" PageSize="8"
                OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
        <div class="per_r_infor">
        </div>
    </div>
    <!--Right-->
    <div class="per_bg_bottom"></div>
    </div>
    <!--Content-->
</asp:Content>
